package com.HomeWorkhsp.chapter10.homework.homework02;

/**
 * Enjoy programming!!!
 * Time: 2021/12/10 -  14:59
 */
public class Homework02 {

}
class Frock{
    private static int currentNumber = 100000;
    private final int serialNumber;

    public Frock() {
        serialNumber = getNextNum();
    }

    public int getSerialNumber() {
        return serialNumber;
    }

    public static int getNextNum(){
        return currentNumber += 100;
    }


}
